import http from '../config/httpconfig'

//login/admin
export const adminLogin = params => http.post('/login/admin', params)
export const listStudentRecord = params => http.get('/churu/listStudentRecord', params)
//统计出入记录
export const inAndOutRecordStatistics= params =>http.get('/intAndOut/inAndOutRecordStatistics',params)
// 学生打卡人数统计
export const studentNumberStatistics = params => http.get('/jiankangdaka/studentNumberStatistics', params)
// 老师打卡人数统计
export const teacherNumberStatistics = params => http.get('/jiankangdaka/teacherNumberStatistics', params)
//高温打卡
export const findHighWenChart = params => http.get('/studentstatisticserror/findHighWenChart', params)
//高风险打卡
export const findHighRiskChart = params => http.get('/studentstatisticserror/findHighRiskChart', params)
//最近6个月频繁出入人数
export const intAndOutcountInAndOutFrequentlyAccessPeopleByMonth= params =>http.get('/intAndOut/countInAndOutFrequentlyAccessPeopleByMonth',params)
//最近14天出入记录
export const intAndOutcountInAndOutRecordByDay= params =>http.get('intAndOut/countInAndOutRecordByDay',params)
// 统计最近14天每天未打卡次数
export const findWeidaRecordToDay = params => http.get('/studentstatisticserror/findWeidaRecordToDay', params)
// 统计最近14天每天高温次数
export const findHighWenToday = params => http.get('/studentstatisticserror/findHighWenToday', params)
// 统计最近14天高风险次数
export const findHighRisk = params => http.get('/studentstatisticserror/findHighRisk', params)
// 统计最近14天每天出入次数
export const findChuru = params => http.get('/studentstatisticserror/findChuru', params)
// 学生非驻马店打卡
export const findNotZmdStu = params => http.get('/jiankangdaka/countStudentAddressNotZmdByDay', params)  
// 教师非驻马店打卡
export const findNotZmdTer = params => http.get('/jiankangdaka/countTeacherAddressNotZmdByDay', params)
// 学生每月非驻马店打卡
export const findNotZmdStuMonth = params => http.get('/jiankangdaka/countStudentAddressNotZmdByMonth', params)
//校园出入记录
export const intAndOutlistInAndOutRecord = params  => http.get('/intAndOut/listInAndOutRecord',params)
// 查询每个部门老师和学生人数总和和每日打卡人数总和
export const totalDepartmentPeopleNumber = params => http.get('/jiankangdaka/totalDepartmentPeopleNumber', params)
// 查询打卡异常人员信息
export const listAbnormalStudent = params => http.get('/jiankangdaka/listAbnormalStudent', params)

export const findCurrentQkStudent = params => http.get('/jiankangdaka/findCurrentQkStudent', params)
//频繁出入人员信息
export const intAndOutlistFrequentlyAccessStudentRecord= params =>http.get('/intAndOut/listFrequentlyAccessStudentRecord',params)